/*
 * @Author: RYPY
 * @Date: 2021-03-24 10:36:05
 * @LastEditors: RYPY
 * @LastEditTime: 2021-03-24 10:44:20
 */
$("#reg_btn").on("click",async()=>{
    let data=await $.post("/reguest",{username:$("#username").val(),pwd:$("#pwd").val()});
    alert(data.msg);
    if(data.code===200){
        location.reload();
    }
});
$("#login_btn").on("click",async()=>{
    let data=await $.post("/login",{username:$("#username").val(),pwd:$("#pwd").val()});
    alert(data.msg);
    if(data.code===200){
        location.href=`/html/${data.page}`;
    }
});